﻿@{
    int columnId = Html.CurrentColumnId();//当前栏目id
    PageInfo pageInfo = new PageInfo()
    {
        PageSize = 12,//每页显示12条数据
        CurrentPage = (int)ViewBag.CurrentPage //当前页码，系统预设
    };
    var dataList = Html.InfoDataList(new { ColumnId = columnId }, null, null, pageInfo);
}
<div class="container padding-top-20">
    <div class="row">
        <div class="col-md-3">
            @Html.Partial("subNavPartial")
        </div>
        <div class="col-md-9">
            @Html.Partial("BreadcrumbPartial")
            <div class="images-list imgae-same-size" id="productList">
                <div class="row">
                    @foreach (var item in dataList)
                    {
                        string url = Html.InfoDataUrl((int)item.ColumnId, (int)item.Id);
                        string thumbnail = item.Thumbnail;
                        <div class="col-md-3 col-sm-4 col-xs-6 item">
                            <a href="@url" target="_blank"><img src="@thumbnail" alt="@item.Title"></a>
                            <a href="@url" target="_blank" class="text-center line-height-3 font-weight-600">
                                @item.Title
                            </a>

                        </div>
                    }
                </div>
            </div>
            @Html.Partial("PagebreakPartial", pageInfo)
        </div>
    </div>
</div>